def test(num):
    print("在函数内部%d,对应的内存地址是%d" % (num,id(num)))
    result = "hello" 
    print("函数要返回的数据内存地址 %d" % id(result))
    return result

a = 10
print("a变量保存数据的地址是%d " % id(a))

r = test(a)
print("%s %d" % (r,id(r)))